function install() {
	var apps = localStorageJson('apps', {});
	var menuGroups = localStorageJson('menuGroups', []);
	apps['brm-stock'] = {
		name: "brm-stock",
		version: '0.0.1',
		index: {
			name: 'Stock',
			href: '../apps/stock/index.html'
		},
	};

	menuGroups.splice(1, 0, {
		name: '仓库',
		menus: [{
			name: '库存',
			icons: 'mui-icon iconfont icon-jinchukuxinxi',
			href: '../apps/stock/index.html',
		}, {
			name: '出库',
			icons: 'mui-icon iconfont icon-chuku',
			href: '../apps/stock/out.html',
		}, {
			name: '入库',
			icons: 'mui-icon iconfont icon-rukuguanli01',
			href: '../apps/stock/in.html',
		}, {
			name: '产品',
			icons: 'mui-icon iconfont icon-chanpin',
			href: '../apps/base/product.html',
		}]
	});
	localStorageJson('menuGroups', menuGroups, true);
	localStorageJson('apps', apps, true);
}
window.$app = {
	install: install
}